package com.sys.service;

import com.github.pagehelper.PageInfo;
import com.sys.model.Dictionary;

import java.util.Map;

/**
 * Created by dell on 2016/6/7.
 * 字典接口
 */
public interface DictionaryService {

     boolean insert(Dictionary dictionary);

     boolean delete(String id);

     boolean update(Dictionary dictionary);

     Dictionary selectById(String id);

     /**
      * 条件查询
      * @param map      参数 关键字key
      * @param pageNum  页码
      * @param pageSize 页面大小
      * @return         结果
      */
     PageInfo<Dictionary> search(Map map, int pageNum, int pageSize);
}
